import { createRouter,createWebHashHistory} from 'vue-router'

const router=createRouter({
	history:createWebHashHistory(), 
	routes:[
		 { name: "login", path: "/", component: () =>import("../pages/loginHome.vue")},
         {name: "home", path: "/home", component: () => import("../components/home.vue"),
	     children: [
			 {
				 name:'accountManagement',
				 path: '/accountManagement',
				 meta:{title:'账户管理'},
				 component: () => import("../pages/accountManagement.vue"),
			 },
	         {
				 name:'user',
			     path: '/user',
			     meta:{title:'用户管理'},
	             component: () => import("../pages/UserManagement.vue"),
	         },
	         {
			     name:'fileList',
	             path: '/fileList',
			     meta:{title:'文件管理'},
	             component: () => import('../pages/fileManagement.vue'),
	         },
			 {
				 name:'orderManagement',
				 path: '/orderManagement',
				 meta:{title:'订单管理'},
				 component: () => import('../pages/orderManagement.vue'),
			 },
			 {
				 name:'merchantServices',
				 path: '/merchantServices',
				 meta:{title:'商品管理'},
				 component: () => import('../pages/merchantServices.vue'),
			 },
			 {
				 name:'comprehensive',
				 path: '/comprehensive',
				 meta:{title:'综合站点'},
				 component: () => import('../pages/comprehensive.vue'),
			 }

	       ]  
	   },
	  
      ]
	})
	
export default router